﻿using System.Collections.Generic;
using DomainModel;

namespace Services.Abstract
{
    public interface IUserService : IService<User>
    {
        User GetByLogin(string login);
        User GetByEmail(string email);
        List<User> Get(Role role);
        void Approve(User user);
        bool IsInRole(User user, Role role);
        bool IsPraepostor(User student, Group group);
        bool IsCurator(User teacher, Group group);
        bool ValidateUser(string login, string password);
    }
}
